import java.util.Arrays;

public class ch06 {
    public static void main(String[] args) {
        int[] s = {3,12,5,6,11,8,7};
        System.out.println("排序前" + Arrays.toString(s));
        Arrays.sort(s);
        System.out.println("排序后" + Arrays.toString(s));
        System.out.println("数组最小值" + s[0]);
        System.out.println("数组最大值" + s[s.length-1]);
    }
}
